<template>
<!-- 增加和筛选零件种类 -->

<el-tabs
	v-model="activeName"
	type="card"
>
	<!-- ========================================================== -->
	<el-tab-pane label="大类列表" name="1">
		<PMBig @jump="jump_to_small"></PMBig>
	</el-tab-pane>
	<!-- ========================================================== -->
	<el-tab-pane label="小类列表" name="2">
		<PMSmall ref="small_ref"></PMSmall>
	</el-tab-pane>
	<!-- ========================================================== -->
	<el-tab-pane label="备件详情" name="3">
		<PMRecord></PMRecord>
	</el-tab-pane>
	<!-- ========================================================== -->
</el-tabs>
<!-- 返回零件种类 -->
</template>
<script lang="ts">
export default {
	name: "PartsManagement1"
}
</script>
<script lang="ts" setup>
import {ref} from 'vue'
import PMBig from "@/page/first/PartsManagement1/PMBig.vue";
import PMSmall from "@/page/first/PartsManagement1/PMSmall.vue";
import PMRecord from "@/page/first/PartsManagement1/PMRecord.vue";

// TODO: 切换页签
const activeName = ref<string>('1')

// const cmy = defineEmits(["change_small"]);
// cmy('change_small', 123)

const small_ref = ref()

const jump_to_small = (val: any) => {
	activeName.value = '2'
	small_ref.value?.jump_to_small(val)
}
</script>

<style scoped>

</style>









